import { Component } from "react";
import { berth } from "./data";
import { getBerthStatistical } from "./options";
import Echarts from "echarts-for-react";

class LeftChart extends Component{
    render() {
        let fo = getBerthStatistical(berth);
        return (
            <Echarts
                ref={ref => {
                    this.chartRef = ref;
                }}
                style={{
                    width: "100%",
                    height: "100%"
                }}
                option={fo}
                notMerge={true}
                lazyUpdate={true}
            />
        );
    }
};

export default LeftChart;